package edu.zut.cs.software.cms.module.student.service;

import java.util.List;
import java.util.Optional;

import edu.zut.cs.software.cms.base.service.GenericManager;
import edu.zut.cs.software.cms.module.student.domain.Student;



/**
 * Manager for student entity
 * 
 * @author 任雪燕
 *
 */
public interface StudentManager extends GenericManager<Student,Long> {
	
	/**
	 * 返回实体Student的所有数据
	 * 
	 * @return
	 */
//	List<Student> getList();
	
	/**
	 * 通过id返回一个Student对象
	 * @param id
	 * @return
	 */
	Student getStudentById(Long id);
	
    	
	boolean IfExist(String code);
	
	
	void CreateOne(String code,String name,String gender,String address,String tel,String email,String department,String major,String clazz);
		
	/**
	 * test
	 * 
	 * @return
	 */
	List<Student> getList();
	
	Optional<Student> findByStudentId(Long studentId);
	
	Boolean deleteById(Long studentId);
}
